﻿using System;
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Domain.Entities;

namespace PasteLoggerBoard.serilogmodels
{
    /// <summary>
    /// 应用信息
    /// </summary>
    [Index(nameof(AppName), IsUnique = true)]
    public class AppInfo:Entity<int>
    {

        /// <summary>
        /// 应用代码 在配置文件中相互匹配 16
        /// </summary>
        [MaxLength(16)]
        public string AppName { get; set; }

        /// <summary>
        /// 显示名称 32
        /// </summary>
        [MaxLength(32)]
        public string DisplayName { get; set; } = "";

        /// <summary>
        /// 介绍 128
        /// </summary>
        [MaxLength(128)]
        public string Desc { get; set; } = "";

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; } = 0;
    }
}
